cmake_minimum_required(VERSION 3.0)

project(test_project)

set(TARGET test_project)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(PkgConfig REQUIRED)
pkg_check_modules(SQLITE REQUIRED IMPORTED_TARGET sqlite3)
add_executable(${TARGET} main.cpp sqlite3recover.c dbdata.c)

target_link_libraries(${TARGET} PRIVATE PkgConfig::SQLITE)